﻿
package system.base;

import framework.core.*;

/*
	Author    :justin
	CreateTime:2008-01-03 16:50:04
*/
public class WarehouseSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_code = "" ; // all

	private String m_name = "" ; // all

	private String m_full_name = "" ; // all

	private String m_address = "" ; // all

	private String m_contact_person = "" ; // all

	private String m_contack_tel = "" ; // all

	private int m_display_order = Value.NULL_INT ; // all

	private String m_remark = "" ; // all

	private String m_status = "" ; // all

	private String m_create_user_id = "" ; // all

	private String m_create_user = "" ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_user_id = "" ; // all

	private String m_last_update_user = "" ; // all

	private String m_last_update_time = "" ; // all
		
	private String m_company_code = "" ; // all

public WarehouseSearchEvent() 
{
	super();
	
	setOrderField(Warehouse.CODE);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getCode()
	{
		return m_code ;
	}
	public void setCode(String v)
	{
		m_code = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public String getFullName()
	{
		return m_full_name ;
	}
	public void setFullName(String v)
	{
		m_full_name = v;
	}

	public String getAddress()
	{
		return m_address ;
	}
	public void setAddress(String v)
	{
		m_address = v;
	}

	public String getContactPerson()
	{
		return m_contact_person ;
	}
	public void setContactPerson(String v)
	{
		m_contact_person = v;
	}

	public String getContackTel()
	{
		return m_contack_tel ;
	}
	public void setContackTel(String v)
	{
		m_contack_tel = v;
	}

	public int getDisplayOrder()
	{
		return m_display_order ;
	}
	public void setDisplayOrder(int v)
	{
		m_display_order = v;
	}

	public String getRemark()
	{
		return m_remark ;
	}
	public void setRemark(String v)
	{
		m_remark = v;
	}

	public String getStatus()
	{
		return m_status ;
	}
	public void setStatus(String v)
	{
		m_status = v;
	}

	public String getCreateUserId()
	{
		return m_create_user_id ;
	}
	public void setCreateUserId(String v)
	{
		m_create_user_id = v;
	}

	public String getCreateUser()
	{
		return m_create_user ;
	}
	public void setCreateUser(String v)
	{
		m_create_user = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateUserId()
	{
		return m_last_update_user_id ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_last_update_user_id = v;
	}

	public String getLastUpdateUser()
	{
		return m_last_update_user ;
	}
	public void setLastUpdateUser(String v)
	{
		m_last_update_user = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewCode() throws Exception
	{
		return Value.view(getCode());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewFullName() throws Exception
	{
		return Value.view(getFullName());
	}

	public String viewAddress() throws Exception
	{
		return Value.view(getAddress());
	}

	public String viewContactPerson() throws Exception
	{
		return Value.view(getContactPerson());
	}

	public String viewContackTel() throws Exception
	{
		return Value.view(getContackTel());
	}

	public String viewDisplayOrder() throws Exception
	{
		return Value.view(getDisplayOrder());
	}

	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewStatus() throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(Warehouse.ID,getId()));

	c.add(getCondition(Warehouse.CODE,getCode()));

	c.add(getCondition(Warehouse.NAME,getName()));

	c.add(getCondition(Warehouse.FULL_NAME,getFullName()));

	c.add(getCondition(Warehouse.ADDRESS,getAddress()));

	c.add(getCondition(Warehouse.CONTACT_PERSON,getContactPerson()));

	c.add(getCondition(Warehouse.CONTACK_TEL,getContackTel()));

	c.add(getCondition(Warehouse.DISPLAY_ORDER,getDisplayOrder()));

	c.add(getCondition(Warehouse.REMARK,getRemark()));

	c.add(getCondition(Warehouse.STATUS,getStatus()));

	c.add(getCondition(Warehouse.CREATE_USER_ID,getCreateUserId()));

	c.add(getCondition(Warehouse.CREATE_USER,getCreateUser()));

	c.add(getCondition(Warehouse.CREATE_TIME,getCreateTime()));

	c.add(getCondition(Warehouse.LAST_UPDATE_USER_ID,getLastUpdateUserId()));

	c.add(getCondition(Warehouse.LAST_UPDATE_USER,getLastUpdateUser()));

	c.add(getCondition(Warehouse.LAST_UPDATE_TIME,getLastUpdateTime()));
		
	c.add(getCondition(Conditions.LIKE,Warehouse.CODE,getWarehouseCodeUser()+"%"));

	c.add(getCondition(Conditions.LIKE,Warehouse.CODE,getCompanyCode()+"%"));		
		return c ;
	}
	
//add by Jackey start
	private String m_warehouse_code_user = "" ; // all
    public String getWarehouseCodeUser()
    {
        return m_warehouse_code_user ;
    }
    public void setWarehouseCodeUser(String v)
    {
        m_warehouse_code_user = v;
    }
    public String viewWarehouseCodeUser() throws Exception
    {
        return Value.view(getWarehouseCodeUser());
    }
	public String getCompanyCode() {
		return m_company_code;
	}
	public void setCompanyCode(String m_company_code) {
		this.m_company_code = m_company_code;
	}    
  
//add by Jackey end
}
